<template>
  <div class="timeline-container">
    <div class="timeline-item" v-for="(item, index) in timelineItems" :key="index">
      <div class="timeline-header">
        <span class="title">{{ item.title }}</span>
      </div>
      <div class="timeline-date">{{ item.date }}</div>
    </div>
  </div>
</template>

<script setup>
const timelineItems = [
  { title: '提名期',  date: '7.02-7.04' },
  { title: 'iBinA',  date: '7.08-7.10' },
  { title: 'Buss Mae', date: '7.15-7.22' },
  { title: 'iBinA',  date: '7.24-8.08' }
];
</script>

<style scoped lang="scss">
.timeline-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  background-color: #111;
  color: aliceblue;

  .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;

    &:not(:last-child)::after {
      content: "+";
      position: absolute;
      right: -10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 20px;
    }
  }

  .timeline-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;

    .title {
      font-size: 16px;
      font-weight: bold;
    }


  }

  .timeline-date {
    font-size: 14px;
    color: #aaa;
  }
}
</style>
